﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
namespace SQT.tracnghiem.Ajax.ASP.Events
{
    public partial class check_answer : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            int id = int.Parse(Request.QueryString["event_id"]);
            int check = int.Parse(Request.QueryString["check"]);
            var get_event = new TblEventDetailController().FetchAll().Single(x => x.EventId == id);
            new TblEventDetailController().Update(get_event.Id, null, null, null, null, check);
        }
    }
}